// components/BottomModal/index.scss
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  visibility: hidden;

  &.show {
    visibility: visible;

    .modal-mask {
      opacity: 1;
    }

    .modal-content {
      transform: translateY(0);
    }
  }
}

.modal-mask {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-content {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}

.modal-header {
  padding: 24px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.modal-body {
  max-height: 60vh;
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  padding: 16px 24px;
  border-top: 1px solid #eee;

  button {
    flex: 1;
    margin: 0 8px;
    height: 60px;
    line-height: 60px;
    font-size: 28px;
    border-radius: 8px;

    &::after {
      border: none;
    }
  }

  .btn-cancel {
    background: #f5f5f5;
    color: #333;
  }

  .btn-confirm {
    background: #07c160;
    color: #fff;
  }
}
